//
//  ZDLoginView.h
//  OCSinaWeiBo
//
//  Created by Apple on 15/10/27.
//  Copyright © 2015年 itcast. All rights reserved.
//

#import <UIKit/UIKit.h>
@class ZDVisitorView;

typedef enum
{
    ZDButtonTypeRegister,
    ZDButtonTypeLogin,
} ZDButtonType;

@protocol ZDVisitorViewDelegate <NSObject>

@optional
- (void) visitorView:(ZDVisitorView *)visitorView didClickButton:(ZDButtonType)type;

@end

@interface ZDVisitorView : UIView

@property (nonatomic, weak) id<ZDVisitorViewDelegate> delegate;

/**
 *  提供给其他控制器自定义访客视图的方法
 */
- (void) customVisitorView:(NSString *)imageName andTitle:(NSString *)title;

/**
 *  iconView开始旋转
 */
- (void)startRotation;

/**
 *  暂停旋转
 */
- (void)pauseAnimation;

/**
 *  恢复旋转
 */
- (void)resumeAnimation;

@end
